﻿using System;
using Volo.Abp.Application.Dtos;
using Tolo.SimplePG.Entities.Books;

namespace Tolo.SimplePG.Services.Dtos.Books;

public class BookDto : AuditedEntityDto<Guid>
{
    public string? Name { get; set; }

    public BookType Type { get; set; }

    public DateTime PublishDate { get; set; }

    public float Price { get; set; }

    public AuthorDto Author { get; set; } = null!;

    public PublisherDto Publisher { get; set; } = null!;
}

public class AuthorDto
{
    public string? Name { get; set; }

    public int Age { get; set; }

    public bool IsMan { get; set; }
}

public class PublisherDto
{
    public string? Name { get; set; }

    public string? Address { get; set; }
}